﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleEdit.aspx.cs" Inherits="main_admin_RoleEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色修改</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />

    <script src="../../js/validator.js" type="text/javascript" charset="utf-8"></script>

    <script src="../../js/comm.js" type="text/javascript" charset="utf-8"></script>
    
    <script src="../../js/base.js" type="text/javascript" charset="utf-8"></script>

    <script type="text/javascript"> 
			function toinsertSave(){	
			  //清除空格	
              TrimAllitems()	
			 var thisForm=document.forms[0];
				if( Validator.Validate(thisForm,3)) {
                //权限可以为空，不用判断
				//    if (thisForm.functions.value == null || thisForm.functions.value == "") {
				//        alert("权限不能为空");
				//        return false;
				//    }
				    if (thisForm.txt_ROLE_MEMO.value.length > 200)
					{
						showErrMsg(thisForm.memo,"角色描述信息不能大于200字符！");
						return false;
					}else {
					LockScreen(true);
						return true;
					}				
				}
				return false;
			}
			
			function toassignpopedom()
			{
				var thisForm=document.form1;		
				functions=thisForm.functions.value;
				url="RoleAssign.aspx?functions="+functions;	
				openwindow(url,"",850,600,1);	
	        return false;
			}			
			
			
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="conter_right">
      <input type="hidden" id="functions" value="" name="functions" runat="server" />
     <input type="hidden" id="roleNo" value="" name="roleNo" runat="server" />
     <div class="sfkr"><span>当前位置：</span>角色管理</div>
     <fieldset class="dsadq"><legend style="color:#434449"><span id="page_title" runat="server">角色管理</span></legend>
         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="msels">
                      <tr>
                        <td style="width:20%" align="right" valign="middle"><asp:Label ID="lbl_ROLE_NAME" runat="server" Text="角色名称："></asp:Label></td>
                        <td align="left" valign="middle"><asp:TextBox ID="txt_ROLE_NAME" runat="server" CssClass="srjks" MaxLength="20" Width="150px" dataType="Require" msg="不能为空"></asp:TextBox><label style="color:Red">&nbsp;&nbsp;*</label>
                        </td>
			<td align="right" valign="middle"></td>
                        <td align="left" valign="middle"></td>
                      </tr>
                      <tr>
                      	<td style="width:20%" align="right" valign="top"><asp:Label ID="lbl_ROLE_MEMO" runat="server" Text="角色描述：" /></td>
                        <td align="left" valign="middle" colspan="3"><asp:textBox  id="txt_ROLE_MEMO" runat="server" cols="60" rows="6" 
                TextMode="MultiLine" Width="488px"></asp:textBox>
                	<asp:Label ID="err_ROLE_MEMO" runat="server"></asp:Label></td>
                      </tr>
                    </table>
        
          </fieldset>
            
		</div>
    </div>
 <div style="height:15px"></div>
<div class="nstkaah" align="center" style="width:90%">
	<asp:Button runat="server" Text="保存" CssClass="seaal" ID="queding" ToolTip="保存" OnClick="queding_Click" OnClientClick="return toinsertSave();" />
	<asp:Button ID="Button1" OnClientClick="toassignpopedom();" runat="server" Text="权限" CssClass="seaal" />
	<asp:Button runat="server" Text="返回" CssClass="seaal" ID="Button3" ToolTip="返回" OnClick="cmdCancel_Click" />
</div>
              
	<!--jjjjjjjjjjjjjjjjjjjj页脚部分jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj-->
	<div id="footer"></div>
    <!--content right end-->
    <!--content end-->
    </form>
</body>
</html>
